//官方圈子-模板

//引入组件库
var app = sm("do_App");
var page = sm("do_Page");
var nf = sm("do_Notification");
var circleUrl = require("url/circle");
var http = require("helper/http");

var root=ui("$"); 
var do_ImageView_icon=ui("do_ImageView_icon");
var do_Label_title=ui("do_Label_title");
var do_Label_desc=ui("do_Label_desc");

root.setMapping({
	"do_Label_title.text":"circleName",
	"do_Label_title.tag":"fromZoneLevelName",
	"do_Label_desc.tag":"toZoneLevelName",
	"do_ImageView_icon.source":"fullCircleLogo",
	"lableAuditStatus.tag" : "status",
	"labelTime.text": "cnNewAt"
});

root.on("dataRefreshed", function(){
	var status = ui("lableAuditStatus").tag;//审批状态
	if(status== "1"){
		ui("lableAuditStatus").text =  "待审核";
	}else if(status== "2"){
		ui("lableAuditStatus").text =  "升级成功";
	}else if(status== "3"){
		ui("lableAuditStatus").text =  "审核不通过";
	}
	ui("do_Label_desc").text = "【"+ui("do_Label_title").tag+"】 升级为：【"+ui("do_Label_desc").tag+"】";
});
